<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<s:if test="#request.statisticalType < 3">
	<s:iterator value="#request.workList" status="sta">
		<tr onclick="openItems(this,'<s:property value="employee.id" />','<s:date name="delegateTime" format="yyyy-MM"/>')" <s:if test="#sta.last">class="last_row"</s:if> >
			<td><s:date name="delegateTime" format="yyyy-MM"/></td>
			<td><s:property value="employee.nickname" /></td>
			<td><s:property value="option1"/>票</td>
			<td><s:property value="option5"/></td>
			<s:if test="#request.statisticalType == 2">
				<td><s:property value="option6"/></td>
			</s:if>
			<td><s:property value="option4"/></td>
			<td>&nbsp;</td>
		</tr>
	</s:iterator>
</s:if>
<s:else>
	<s:iterator value="#request.workList" status="sta">
		<tr <s:if test="#sta.last">class="last_row"</s:if> >
			<td>
				<s:if test="option2 != null && option2 != ''">
					<s:property value="employee.nickname" />(<s:property value="option2" />票)
					<s:set name="monthTemp" value="null"></s:set>
				</s:if>
				<s:else>&nbsp;</s:else>
			</td>
			<td>
				<s:date name="delegateTime" format="M" var="month"/>
				<s:if test="#monthTemp == null || #monthTemp != #month">
					<s:date name="delegateTime" format="M"/>月
					<s:set name="monthTemp" value="#month"></s:set>
				</s:if>
				<s:else>&nbsp;</s:else>
			</td>
			<td><s:property value="item.name" /></td>
			<td><a href="javascript:void(0)" class="a_count" onclick="openItems($(this).parents('tr:first')[0],'<s:property value="employee.id" />','<s:date name="delegateTime" format="yyyy-MM"/>','<s:property value="item.id" />')"><s:property value="option1"/>票</a></td>
			<td>&nbsp;</td>
		</tr>
	</s:iterator>
</s:else>
<script>
var total = '<s:property value="#request.total" />';
$('#total').html(total);
</script>